//
//  WDPDHeaderCell.m
//  Zhihuijinfu
//
//  Created by 天Ming是个小可爱 on 2017/1/4.
//  Copyright © 2017年 王笛. All rights reserved.
//

#import "WDPDHeaderCell.h"
#import "WDProduct.h"
@interface WDPDHeaderCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *productNameLabel;

@end
@implementation WDPDHeaderCell

- (void)setLogo:(NSString *)logo
{
    _logo = logo;
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:logo]];
}

- (void)setParentName:(NSString *)parentName
{
    _parentName = parentName;
    NSArray *arr = [parentName componentsSeparatedByString:@"-"];
    
    self.nameLabel.text = arr[0];
    
    self.productNameLabel.text = arr[1];
}

@end
